package adaptor.toy;

//구모델 장난감.
public class OldToy implements OldtypeToy{
	 private String myName = "";  
	       
	     public OldToy(String myName) {  
	         this.myName = myName;  
	     }  
	       
	     public void useToy() {  
	         System.out.println(myName+" : use this");  
	     }  
	     // 구모델은 플러그를 통해 충전 함.  
	     public void onPlug() {  
	         System.out.println(myName+" : plug on");  
	     }  
	   
	     public String getName() {  
	         return myName;  
	     }  


}
